﻿//
// Created: 2018/8/30
// Author: chenqiang
//
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xproject.Framework.Core;
using System.ComponentModel.DataAnnotations.Schema;

namespace  Model.Admin
{
    public class  Advertisement:IEntity
    {
    
       ///<summary>
       ///
       ///<summary>
       public string ID  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string AdName  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string AdType  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string AdSource  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string AdPicUrl  { get; set; } 
        public string AdDomain { get; set; }
       ///<summary>
       ///
       ///<summary>
        public string AdLink  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public int IsShow  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public int SortId  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string Remarks  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public DateTime CreateTime  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string KeyWord  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string Site  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public DateTime DeadTime  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public int Enable  { get; set; } 
        [NotMapped] 
       public string StrCreateTime {
            get {
                return CreateTime.ToString("yyyy-MM-dd HH:mm:ss");
            }
        }
      

       [NotMapped]
        public long Id { get; set; }

        [NotMapped]
        public EntityState EntityState { get; set; }

        public int CompareTo(object obj)
        {
            throw new NotImplementedException();
        }
    }
}